using UnityEngine;
using UnityEditor;

namespace GPUParticles
{
    public class SizeModule : Module
    {
       
        SerializedProperty size;
      
        //SerializedProperty sizeVariation;

        Object[] targets;

        public SizeModule(SerializedObject serializedObject, Object[] targets)
        {
            this.targets = targets;
            size = serializedObject.FindProperty("size");
           
            //sizeVariation = serializedObject.FindProperty("sizeVariation");
        }

        public override void Draw()
        {
            DrawGUI("Size", DrawContent);
        }

        private void DrawContent()
        {
          
            size.floatValue = Mathf.Max(0f, EditorGUILayout.FloatField(new GUIContent("Size"), size.floatValue));
                   
        }
            //sizeVariation.floatValue = Mathf.Clamp(EditorGUILayout.FloatField(new GUIContent("Variation (%)"), sizeVariation.floatValue), 0f, 100f);
        
    }
}